<<style>

</style>

<<template>
<div>
    <h2>child 的子组件部分</h2>
    <p>{{message}}</p>
    <button @click='sendMsgToParent'>向父组件传值</button>
</div>
</template>

<<script>
export default {
  props:['message'],
  methods:{
      sendMsgToParent(){
          this.$emit('listenToChlidEvent','this message is from child')
      }      
  }
}
</script>


